package com.perkinelmer.housecall.client.activity;

import com.google.gwt.user.client.ui.Panel;
import com.perkinelmer.housecall.client.util.Identifier;

public interface Activity<P> {
	
	public ActivityId<P> getId();
	public void start(Panel panel, P parameters);
	public void stop();
	
	public class ActivityId<P> extends Identifier {
		
		public static <P> ActivityId<P> make(String name) {
			return new ActivityId<P>(name);
		}
		
		private ActivityId(String name) {
			super(name);
		}
	}
}
